<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<html:html>
    <head>       
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <%@include file="cabecera.jsp" %>
        <link rel="stylesheet" href="./css/estilo2.css" type="text/css" /> 
        <title><bean:message key="welcome.title"/></title>

    </head>
    <body>
        <div class="contenedor">
            <h1>Nueva operacion</h1>
            <logic:notEmpty  name="msg" scope="request">
                <h2><bean:write name="msg" /></h2>
            </logic:notEmpty>

            <html:form action="/OperarAction" onsubmit="return(validateOperarForm(this));" >
                <html:errors/>
                <html:javascript formName="OperarForm"/>
                <html:select property="pkCuenta">
                    <html:options collection="cuentas" property="pkCuenta" labelProperty="infoSaldo"/>
                </html:select>

                <table>                
                    <tr><td>Importe (EUR)</td><td><html:text property="importe" /></td></tr>
                    <tr><td>Concepto</td><td><html:textarea property="concepto" /></td></tr>
                    <tr><td></td><td><html:submit value="Validar operacion" /></td></tr>
                </table>
            </html:form>

            <li><html:link action="/VolverMenuPersonal">Volver</html:link></li>
            </div>
        </body>
</html:html>
